<?php
define('WEBSITE','汉阴气象局');
define('WEBSITEURL', str_replace("\\", '/', dirname(__FILE__) ) );
define('ADMINLOC','admin');
require_once (WEBSITEURL.'/'.ADMINLOC.'/system.class.php');
$system=new System();
$website=$system->getWebSite();
define('CIE', $website);
/*设定要用的默认时区*/
date_default_timezone_set('PRC');
/*配置smarty模版*/
require_once(WEBSITEURL."/".ADMINLOC."/include/smarty/libs/Smarty.class.php");
$smarty=new Smarty();
/*指定编译的文件路径*/
$smarty->compile_dir=WEBSITEURL."/".ADMINLOC."/data/templates_compile";
/*不使用缓存*/
$smarty->caching=false;
/*指定smarty配置文件路径*/
$smarty->config_dir=WEBSITEURL."/".ADMINLOC."/include/smarty/config";
/*指定左定界符，避免和JS冲突*/
$smarty->left_delimiter="{% ";
/*指定右定界符，避免和JS冲突*/
$smarty->right_delimiter=" %}";
/*设置编译号id,与后台相区分*/
$smarty->compile_id="1.0.0";
/*强制编译，仅在网站开发时方便实时更新使用*/
//$smarty->force_compile=true;
/*设定主页*/
$smarty->assign("website",CIE);